package bit1;

import java.util.ArrayList;
import java.util.Arrays;

public class home5 {
    public static void arrSwap(int[] arr1,int[] arr2){
        for (int i = 0; i < arr1.length; i++) {
            int tmp=arr1[i];
            arr1[i]=arr2[i];
            arr2[i]=tmp;
        }
    }
    public static void main(String[] args) {
        ArrayList<Integer> list=new ArrayList<>();
        int arr1[]={1,2,3,4,5,6,7,8,9,10,11};
        int arr2[]={11,10,9,8,7,6,5,4,3,2,1};
        for (int i = 0; i < arr1.length; i++) {
            list.add(arr1[i]);
        }


//        arrSwap(arr1,arr2);
//        String str1= Arrays.toString(arr1);
//        String str2=Arrays.toString(arr2);
//        System.out.println(str1);
//        System.out.println(str2);
    }
}
